home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19950726-19950929
/
000125_news@columbia.edu_Wed Aug 9 09:35:19 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-12-25
|
4KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA02564
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Thu, 10 Aug 1995 03:27:04 -0400
Received: by apakabar.cc.columbia.edu id AA15611
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Thu, 10 Aug 1995 03:27:02 -0400
Path: news.columbia.edu!news.cs.columbia.edu!news.boxhill.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!news.belwue.de!news.uni-freiburg.de!MPI1.IMMUNBIO.MPG.DE!GARTMANN
From: gartmann@immunbio.mpg.de (Christoph Gartmann)
Newsgroups: comp.protocols.kermit.misc,comp.os.vms
Subject: Re: C-Kermit scripting & VMS ... odd?
Date: 9 Aug 1995 09:35:19 GMT
Organization: Max-Planck-Institut fuer Immunbiologie
Lines: 69
Distribution: world
Message-Id: <409vgn$qm6@n.ruf.uni-freiburg.de>
References: <408mms$e47@cmi.hahnemann.edu>
Reply-To: gartmann@immunbio.mpg.de
Nntp-Posting-Host: mpi1.immunbio.mpg.de
Xref: news.columbia.edu comp.protocols.kermit.misc:3396 comp.os.vms:107331
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <408mms$e47@cmi.hahnemann.edu>, BRENNAN@HAL.HAHNEMANN.EDU (A. Andrew Brennan) writes:
> ;
> output \13
> input 20 Username:
> if fail error {Unable to connect}
> output \%n\13
> input 20 Password:
> if fail error {Unable to connect}
> output \%p\13
> output \13
> input 5 Username:
> if failure goto gooduser
> echo must have a bad password
> goto eof ; got the username prompt, must be a bad password
> :gooduser
> echo \10\10made it to gooduser\10\10
> connect
> ; quit, return to login procedure.
> quit
> ;
>
> On a Unix box, this bit will do what we want. We pull in the username
> and password, check it against the "permitted users" list and pass it to
> the login routine via a telnet connection. Good password - pass through
> and the user is online. Bad password - they get dumped.
>
> VMS (CKVVTGV.EXE 5A(190) 4 Oct 1994) unfortunately doesn't work this way
> exactly. The routine passes the username & password, looks for anything
> to indicate that the password was bad (an extra return would force a new
> 'Username:' prompt on the first login attempt) and *not finding it* would
> allow the user to login ... at which point C-Kermit blows up:
>
> %SYSTEM-F-ACCVIO, access violation, reason mask=05, virtual address=63207427,
> PC=00066A0E, PSL=03C00000
> %TRACE-F-TRACEBACK, symbolic stack dump follows
> module name routine name line rel PC abs PC
>
> CKVCON ckcgetc 6053 000000C6 00066A0E
> CKVCON conect 6301 000005DA 0006708E
> CKUUS4 doconect 8625 00000049 0006D24D
> CKUUSR docmd 7163 000003B2 00067F72
> CKUUS5 parser 7013 0000066A 0004EDFA
> CKCMAI main 6657 00000302 0004D702
>
> Looks like it's not happy about not finding that it shouldn't let the
> user login (not enough negatives in that sentence, no??)
>
> Anyone run into this one yet?
I experienced similar problems under the following circumstances:
C-Kermit waits for some input to occur, the input arrives, it is recognized
and C-Kermit outputs some bytes but just at this time there are still some
bytes arriving (a single byte is enough) => stack dump.
This may well be the case in your script. After a successfull login your
script issues a second CR and at the same time some intro text from the
VMS-machine is arriving => crash. To check for a successfull login try to
wait for something like "User authorization failure" and issue the CR only
if this string doesn't arrive.
Regards,
Christoph Gartmann
+----------------------------------------------------------------------------+
| Max-Planck-Institut fuer Phone : +49-761-5108-465 Fax: -221 |
| Immunbiologie PSI : PSI%(0262)45050160374::GARTMANN |
| Postfach 1169 Internet: gartmann@immunbio.mpg.de |
| D-79011 Freiburg, FRG |
+----------- Do you know MENUE, the user environment for OpenVMS? -----------+